package com.wlz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.password.PasswordEncoder;

import javax.annotation.PostConstruct;

/**
 * 授权 服务
 * @author： wlz
 * @Date 2020/6/23 9:37
 * @description： TODO
 * @version: 1.0
 */

@SpringBootApplication
public class SpringCloudAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudAuthServerApplication.class, args);
    }

    @Autowired
    private PasswordEncoder passwordEncoder;

    @PostConstruct
    public void test() {
        System.out.println(passwordEncoder.encode("123456"));
        System.out.println(passwordEncoder.encode("123456"));
        System.out.println(passwordEncoder.encode("123456"));
    }
}
